package com.mg.yygh.hosp.client;

import com.mg.yygh.vo.hosp.ScheduleOrderVo;
import com.mg.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author M_Dragon
 * @date 2022/9/26/026 15:15
 */
@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {

    // 内部远程调用：根据排班id获取预约下单数据
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    public ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    // 内部远程调用：获取医院签名信息
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    public SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);
}
